# 头文件目录
INCLUDEDIR=-I/home/fintech/codings/cpptools/chapter02_03_linux_base/demo05_makefile_multi/api -I/home/fintech/codings/cpptools/chapter02_03_linux_base/demo05_makefile_multi/tools
#库文件目录
LIBDIR= -L/home/fintech/codings/cpptools/chapter02_03_linux_base/demo05_makefile_multi/api -L/home/fintech/codings/cpptools/chapter02_03_linux_base/demo05_makefile_multi/tools

all: demo01.out demo02.out demo03.out

demo01.out: demo01.cpp
	g++ -o demo01.out demo01.cpp $(INCLUDEDIR) $(LIBDIR) -lmyapi -lpublic 
	cp demo01.out /tmp/

demo02.out: demo02.cpp
	g++ -o demo02.out demo02.cpp $(INCLUDEDIR) $(LIBDIR) -lmyapi -lpublic

demo03.out: demo03.cpp
	g++ -o demo03.out demo03.cpp $(INCLUDEDIR) $(LIBDIR) -lmyapi -lpublic 

clean:
	rm -f demo01.out demo02.out demo03.out
